.class final Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache$SDCardListener;
.super Ljava/lang/Object;
.source "ImageCache.java"

# interfaces
.implements Lcom/burstly/lib/service/SdCardWatchingService$IWatcherNotificator;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "SDCardListener"
.end annotation


# instance fields
.field private final mAppContext:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference",
            "<",
            "Landroid/content/Context;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "appContext"

    .prologue
    .line 141
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 142
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache$SDCardListener;->mAppContext:Ljava/lang/ref/WeakReference;

    .line 143
    return-void
.end method

.method synthetic constructor <init>(Landroid/content/Context;Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache$1;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 129
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache$SDCardListener;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public notifySdCardStateChanged(Z)V
    .locals 2
    .parameter "isUsable"

    .prologue
    .line 147
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache;->LOCK:Ljava/lang/Object;

    monitor-enter v1

    .line 148
    :try_start_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache$SDCardListener;->mAppContext:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/Context;

    invoke-static {p1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache;->initCacheDir(ZLandroid/content/Context;)V

    .line 149
    monitor-exit v1

    .line 150
    return-void

    .line 149
    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method
